<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="message.lable.expertStd"/></title>
   <%@ include file="/WEB-INF/component/commonCSS.jsp" %> 
    <!--[if lt IE 9]>
        <script src="${ctx}/lib/js/html5shiv.min.js"></script>
        <script src="${ctx}/lib/js/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
    	div.box-body {
    		margin-top:7px;
    	}
    </style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>${(opType==0)?"专家新增":"专家编辑"}&nbsp;&nbsp;<span id="expertCode" style="color:#cccccc;font-size:15px;} " >${stdExpert.expertCode}</span>
        </h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.StdManage"/></a></li>
            <li class="active"><a href=""><spring:message code="message.lable.expertStd"/></a></li>
        </ol>
    </section>
    <section class="content">
    <form id="form" class="form-horizontal" action="stdExpertAddAndEdit.html" method="post">
            	<input type="hidden" name="expertId" value="${stdExpert.expertId}" />
            	<input type="hidden" id="opType" name="opType" value="${opType}" />
            	<input type="hidden" id="expertCode" name="expertCode" value="${stdExpert.expertCode}" />
             <div class=" box box-success ">
              <div class="box-body">
                    
                    <div class="form-group form-group-xs">
                        <label for="name" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.zhuanJiaXingming"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="name" name="name" value="${stdExpert.name}" placeholder="<spring:message code="message.listForm.zhuanJiaXingming"/>" type="text">
                        </div>
                            <label for="sex" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.xingbie"/>：</label>
                        <div class="col-sm-3 text-left">
                             <input  id="sex" name="sex" value="<spring:message code="message.listForm.man"/>" ${stdExpert.sex=="男"?"checked='checked'":""} placeholder="<spring:message code="message.listForm.xingbie"/>" type="radio">&nbsp;<spring:message code="message.listForm.man"/>
                             <input  id="sex" name="sex" value="<spring:message code="message.listForm.women"/>" ${stdExpert.sex=="女"?"checked='checked'":""} placeholder="<spring:message code="message.listForm.xingbie"/>" type="radio">&nbsp;<spring:message code="message.listForm.women"/>
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="idNum" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.shenFenZhengHao"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="idNum" name="idNum" value="${stdExpert.idNum}" placeholder="<spring:message code="message.listForm.shenFenZhengHao"/>" type="text">
                        </div>
                         <label for="expSkillsType1" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.zhuanYeJiShuTeChang"/>：</label>
                        <div class="col-sm-3 text-left" >
                        	 <select class="form-control" id="expSkillsType1" name="expSkillsType1" style="width: 75px; float:left;margin:0 10px 0 0;" ></select>
							 <select class="form-control" id="expSkillsType2" name="expSkillsType2" style="width: 75px;float:left;margin:0 10px 0 0;"></select>
							 <select class="form-control" id="expSkillsType3" name="expSkillsType3" style="width: 75px;float:left;margin:0 10px 0 0;"><option value=''><spring:message code="message.select.option"/></option></select>
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="politicalStatus" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.zhengZhiMianMao"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="politicalStatus" name="politicalStatus" value="${stdExpert.politicalStatus}" placeholder="<spring:message code="message.listForm.zhengZhiMianMao"/>" type="text">
                        </div>
                        <label for="birthday" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.chuShengRiQi"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="birthday" name="birthday" value="${stdExpert.birthdayStr}" placeholder="<spring:message code="message.listForm.chuShengRiQi"/>" type="text" data-provide="datepicker" data-date-fmt="yyyy-MM-dd">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="eduBg" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.zuiGaoXueLi"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="eduBg" name="eduBg" value="${stdExpert.eduBg}" placeholder="<spring:message code="message.listForm.zuiGaoXueLi"/>" type="text">
                        </div>
                        <label for="eduDegree" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.zuiGaoXuWei"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="eduDegree" name="eduDegree" value="${stdExpert.eduDegree}" placeholder="<spring:message code="message.listForm.zuiGaoXuWei"/>" type="text">
                        </div>
                    </div>
                     <div class="form-group form-group-xs">
                        <label for="techPos" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.zhiChen"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="techPos" name="techPos" value="${stdExpert.techPos}" placeholder="<spring:message code="message.listForm.zhiChen"/>" type="text">
                        </div>
                        <label for="techPosCertNo" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.zhiChenZhengShuHao"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="techPosCertNo" name="techPosCertNo" value="${stdExpert.techPosCertNo}" placeholder="<spring:message code="message.listForm.zhiChenZhengShuHao"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                    	<label for="position" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.zhiWu"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="position" name="position" value="${stdExpert.position}" placeholder="<spring:message code="message.listForm.zhiWu"/>" type="text">
                        </div>
                        <label for="industry" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.suoShuHangYe"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="industry" name="industry" value="${stdExpert.industry}" placeholder="<spring:message code="message.listForm.suoShuHangYe"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.congShiHangYe"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="profession" name="profession" value="${stdExpert.profession}" placeholder="<spring:message code="message.listForm.congShiHangYe"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.congShiHangYeNianXian"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="profesExper" name="profesExper" value="${stdExpert.profesExper}" placeholder="<spring:message code="message.listForm.congShiHangYeNianXian"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.zhiYeZiGe1"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicense1" name="practLicense1" value="${stdExpert.practLicense1}" placeholder="<spring:message code="message.listForm.zhiYeZiGe1"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zhiYeZiGeZhengShu1"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicenseCertNo1" name="practLicenseCertNo1" value="${stdExpert.practLicenseCertNo1}" placeholder="<spring:message code="message.listForm.zhiYeZiGeZhengShu1"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.zhiYeZiGe2"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicense2" name="practLicense2" value="${stdExpert.practLicense2}" placeholder="<spring:message code="message.listForm.zhiYeZiGe2"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zhiYeZiGeZhengShu2"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicenseCertNo2" name="practLicenseCertNo2" value="${stdExpert.practLicenseCertNo2}" placeholder="<spring:message code="message.listForm.zhiYeZiGeZhengShu2"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.zhiYeZiGe3"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicense3" name="practLicense3" value="${stdExpert.practLicense3}" placeholder="<spring:message code="message.listForm.zhiYeZiGe3"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zhiYeZiGeZhengShu3"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicenseCertNo3" name="practLicenseCertNo3" value="${stdExpert.practLicenseCertNo3}" placeholder="<spring:message code="message.listForm.zhiYeZiGeZhengShu3"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.zhiYeZiGe4"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicense4" name="practLicense4" value="${stdExpert.practLicense4}" placeholder="<spring:message code="message.listForm.zhiYeZiGe4"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zhiYeZiGeZhengShu4"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicenseCertNo4" name="practLicenseCertNo4" value="${stdExpert.practLicenseCertNo4}" placeholder="<spring:message code="message.listForm.zhiYeZiGeZhengShu4"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.zhiYeZiGe5"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicense5" name="practLicense5" value="${stdExpert.practLicense5}" placeholder="<spring:message code="message.listForm.zhiYeZiGe5"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zhiYeZiGeZhengShu5"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="practLicenseCertNo5" name="practLicenseCertNo5" value="${stdExpert.practLicenseCertNo5}" placeholder="<spring:message code="message.listForm.zhiYeZiGeZhengShu5"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.pingBiaoZhuanYe1"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="scoreArea1" name="scoreArea1" value="${stdExpert.scoreArea1}" placeholder="<spring:message code="message.listForm.pingBiaoZhuanYe1"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.pingBiaoZhuanYe2"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="scoreArea2" name="scoreArea2" value="${stdExpert.scoreArea2}" placeholder="<spring:message code="message.listForm.pingBiaoZhuanYe2"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.pingBiaoZhuanYe3"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="scoreArea3" name="scoreArea3" value="${stdExpert.scoreArea3}" placeholder="<spring:message code="message.listForm.pingBiaoZhuanYe3"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.diQu"/>：</label>
                        <div class="col-sm-3 text-left" >
                        	<select class="form-control" id="area1" name="area1" style="width: 75px; float:left;margin:0 10px 0 0;" ></select>
							 <select class="form-control" id="area2" name="area2" style="width: 75px;float:left;margin:0 10px 0 0;"></select>
							 <select class="form-control" id="area3" name="area3" style="width: 75px;float:left;margin:0 10px 0 0;"><option value=''><spring:message code="message.select.option"/></option></select>
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.gongNing"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="serviceYear" name="serviceYear" value="${stdExpert.serviceYear}" placeholder="<spring:message code="message.listForm.gongNing"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.shiFouTuiXiu"/>：</label><!-- 1未退休0退休 -->
                        <div class="col-sm-3 text-left">
                        	<input  id="retired" name="retired" value="0" ${stdExpert.retired=="0"?"checked='checked'":""} placeholder="<spring:message code="message.listForm.shiFouTuiXiu"/>" type="radio">&nbsp;<spring:message code="message.listForm.shi"/>
                             <input  id="retired" name="retired" value="1" ${stdExpert.retired=="1"?"checked='checked'":""} placeholder="<spring:message code="message.listForm.shiFouTuiXiu"/>" type="radio">&nbsp;<spring:message code="message.listForm.fou"/>
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.biYeYuanXiao"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="university" name="university" value="${stdExpert.university}" placeholder="<spring:message code="message.listForm.biYeYuanXiao"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><span class="required">*</span><spring:message code="message.listForm.suoXueZhuanYe"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="major" name="major" value="${stdExpert.major}" placeholder="<spring:message code="message.listForm.suoXueZhuanYe"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><span class="required">*</span><spring:message code="message.listForm.gongZuoDanWei"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="companyId" name="companyId" value="${stdExpert.companyId}" placeholder="<spring:message code="message.listForm.gongZuoDanWei"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.zuZhiJiGouDaiMa"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="orgId" name="orgId" value="${stdExpert.orgId}" placeholder="<spring:message code="message.listForm.zuZhiJiGouDaiMa"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs">
                        <label for="expertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.danWeiDiZhi"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="companyAddr" name="companyAddr" value="${stdExpert.companyAddr}" placeholder="<spring:message code="message.listForm.danWeiDiZhi"/>" type="text">
                        </div>
                        <label for="name" class="col-sm-3 text-right"><spring:message code="message.listForm.jiaTingDiZhi"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="homeAddr" name="homeAddr" value="${stdExpert.homeAddr}" placeholder="<spring:message code="message.listForm.jiaTingDiZhi"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs"> 
                        <label for="expSkills" class="col-sm-2 text-right"><spring:message code="message.listForm.yiDongDianHua"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="handphone" name="handphone" value="${stdExpert.handphone}" placeholder="<spring:message code="message.listForm.yiDongDianHua"/>" type="text">
                        </div>
                        <label for="profession" class="col-sm-3 text-right"><spring:message code="message.listForm.danWeiDianHua"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="compPhone" name="compPhone" value="${stdExpert.compPhone}" placeholder="<spring:message code="message.listForm.danWeiDianHua"/>" type="text">
                        </div>
                    </div>
                    <div class="form-group form-group-xs"> 
                        <label for="profesExper" class="col-sm-2 text-right"><spring:message code="message.listForm.zhuZhaiDianHua"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="telephone" name="telephone" value="${stdExpert.telephone}" placeholder="<spring:message code="message.listForm.zhuZhaiDianHua"/>" type="text">
                        </div>
                        <label for="email" class="col-sm-3 text-right"><spring:message code="message.listForm.youZhengBianMa"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="zipcode" name="zipcode" value="${stdExpert.zipcode}" placeholder="<spring:message code="message.listForm.youZhengBianMa"/>" type="text">
                        </div>
                    </div>
                     <div class="form-group form-group-xs"> 
                        <label for="profesExper" class="col-sm-2 text-right"><spring:message code="message.listForm.dianZiYouJian"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="email" name="email" value="${stdExpert.email}" placeholder="<spring:message code="message.listForm.dianZiYouJian"/>" type="text">
                        </div>
                        <label for="profesExper" class="col-sm-3 text-right"><spring:message code="message.listForm.pingBiaoJingYan"/>：</label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="scoreYesrs" name="scoreYesrs" value="${stdExpert.scoreYesrs}" placeholder="<spring:message code="message.listForm.pingBiaoJingYan"/>" type="text">
                        </div>
                    </div>

                    <div class="form-group form-group-xs">
                        <label for="remark" class="col-sm-2 control-label"><spring:message code="message.lable.remark"/>：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="remark" name="remark" rows="3" placeholder="<spring:message code="message.lable.remark"/>">${stdExpert.remark}</textarea>
                        </div>
                    </div>
                </div>
                <div class="box-footer text-center">
                    <button type="button" class="btn btn-success btn-sm" onclick="saveExpert()"><spring:message code="message.button.saveSpacing"/></button>
                    <a href="${ctx }/stdExpert/expertList.html" class="btn btn-danger btn-sm"><spring:message code="message.button.getBackSpacing"/></a>
                </div>   
        </div>
       </form> 
    </section>
    <%@ include file="/WEB-INF/component/commonJS.jsp"%>
	<script src="${ctx}/lib/plugins/daterangepicker/moment.js"></script>
    <script src="${ctx}/lib/plugins/daterangepicker/daterangepicker.js"></script>
    <script type="text/javascript">

		function testRepeatByExpertCode(){
			var expertCode = $.trim($("#expertCode").val());
			if($("#opType").val()=="1"){
				var ad = "${stdExpert.expertCode}";
				if(ad==expertCode){
					return;
				}
			}
			$.post("getStdExpertListByExpertCode.html", {
				expertCode : expertCode
			}, function(result){
				if(result){
					$.alert("<spring:message code="message.listForm.zhuanJiaBianMa"/><spring:message code="message.lable.yiChunZai"/>","warn");
					$("#expertCode").val("");
				}
			}, "json");
		}
    	function saveExpert() {
    		 if (!validate()) {
    			return;
    		} 
    		 
    		 $.HN.message.confirm('<spring:message code="message.HN.alert.OkSaveYESorNO"/>', '', '').on(function (e) {
                 if (e) {
    		$("#form").ajaxSubmit({	
    			dataType : "json",
    			timeout: 10000,
    			success : function(result, statusText) {
    				if (result.success) {
    					top.$.alert('<spring:message code="message.HN.alert.baoCunCheng"/>', 'success');
    					setTimeout("document.location = '${ctx}/stdExpert/expertList.html'",500);
    				} else {
    					top.$.alert(result.msg || "<spring:message code="message.HN.alert.baoCunBai"/>", "error");
    				}
    			}
    		});
                 }
    		 });
    	}
    	
    	
    	function validate() {
    		

    		var name = $.trim($("#name").val());
    		if (name == null || name == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhuanJiaXingming"/>！",  "warn");
    			return false;
    		}else if(name.length > 42){
				$.alert("<spring:message code="message.listForm.zhuanJiaXingming"/><spring:message code="message.info.zuiDaChangDu"/>64<spring:message code="message.info.geZiFu"/>",  "warn");
			}

    		var idNum = $.trim($("#idNum").val());
    		if (idNum == null || idNum == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.shenFenZhengHao"/>！",  "warn");
    			return false;
    		} else if (!/^\d+[a-zA-Z0-9]$/.test(idNum) || idNum.length > 18) {
    			$.alert("<spring:message code="message.listForm.shenFenZhengHao"/><spring:message code="message.lable.FormatError"/>",  "warn");
    			return false;
    		} 
    		
    		if (escape(idNum).indexOf( "%u" )>=0){
    			$.alert("<spring:message code="message.listForm.shenFenZhengHao"/><spring:message code="message.lable.FormatError"/>",  "warn");
    			return false;
    		} 

    		var sex = $.trim($("#sex").val());
    		if (sex == null || sex == "") {
    			$.alert("<spring:message code="message.select.option"/><spring:message code="message.listForm.xingbie"/>！",  "warn");
    			return false;
    		}


    		var politicalStatus = $.trim($("#politicalStatus").val());
    		if (politicalStatus == null || politicalStatus == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhengZhiMianMao"/>！",  "warn");
    			return false;
    		}else if(politicalStatus.length > 6){
				$.alert("<spring:message code="message.listForm.zhengZhiMianMao"/><spring:message code="message.info.zuiDaChangDu"/>6<spring:message code="message.info.geZiFu"/>！",  "warn");
    			return false;
			}

    		var birthday = $.trim($("#birthday").val());
    		if (birthday == null || birthday == "") {
    			$.alert("<spring:message code="message.select.option"/><spring:message code="message.listForm.chuShengRiQi"/>！",  "warn");
    			return false;
    		}
			
    		var eduBg = $.trim($("#eduBg").val());
    		if (eduBg == null || eduBg == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zuiGaoXueLi"/>！",  "warn");
    			return false;
    		}else if(eduBg.length > 6){
				$.alert("<spring:message code="message.listForm.zuiGaoXueLi"/><spring:message code="message.info.zuiDaChangDu"/>6<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
    		
    		var eduDegree = $.trim($("#eduDegree").val());
    		if (eduDegree == null || eduDegree == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zuiGaoXuWei"/>！",  "warn");
    			return false;
    		}else if(eduDegree.length > 16){
				$.alert("<spring:message code="message.listForm.zuiGaoXuWei"/><spring:message code="message.info.zuiDaChangDu"/>16<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
			
    		var techPos = $.trim($("#techPos").val());
    		if (techPos == null || techPos == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhiChen"/>！",  "warn");
                return false;
    		}else if(techPos.length > 42){
				$.alert("<spring:message code="message.listForm.zhiChen"/><spring:message code="message.info.zuiDaChangDu"/>42<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
    		
    		var techPosCertNo = $.trim($("#techPosCertNo").val());
    		if (techPosCertNo == null || techPosCertNo == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhiChenZhengShuHao"/>！",  "warn");
                return false;
            }else if(techPosCertNo.length > 42){
				$.alert("<spring:message code="message.listForm.zhiChenZhengShuHao"/><spring:message code="message.info.zuiDaChangDu"/>42<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}

    		var position = $.trim($("#position").val());
    		if (position == null || position == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhiWu"/>！",  "warn");
    			return false;
    		}else if(position.length > 42){
				$.alert("<spring:message code="message.listForm.zhiWu"/><spring:message code="message.info.zuiDaChangDu"/>42<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
			
    		var industry = $.trim($("#industry").val());
    		if (industry == null || industry == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.suoShuHangYe"/>！",  "warn");
                return false;
            }else if(industry.length > 85){
				$.alert("<spring:message code="message.listForm.suoShuHangYe"/><spring:message code="message.info.zuiDaChangDu"/>85<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}

    		var profession = $.trim($("#profession").val());
    		if (profession == null || profession == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.congShiHangYe"/>！",  "warn");
    			return false;
    		}else if(profession.length > 85){
				$.alert("<spring:message code="message.listForm.congShiHangYe"/><spring:message code="message.info.zuiDaChangDu"/>85<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
    		var profesExper = $.trim($("#profesExper").val());
    		if (profesExper == null || profesExper == "") {
    			$.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.congShiHangYeNianXian"/>！",  "warn");
    			return false;
    		}else if(profesExper>99){
				$.alert("<spring:message code="message.listForm.congShiHangYeNianXian"/><spring:message code="message.HN.buChaoGuo"/>！",  "warn");
				return false;
			}
    		var university = $.trim($("#university").val());
    		if (university == null || university == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.biYeYuanXiao"/>！",  "warn");
                return false;
            }else if(university.length > 42){
				$.alert("<spring:message code="message.listForm.biYeYuanXiao"/><spring:message code="message.info.zuiDaChangDu"/>42<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
    		
    		var major = $.trim($("#major").val());
    		if (major == null || major == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.suoXueZhuanYe"/>！",  "warn");
                return false;
            }else if(major.length > 42){
				$.alert("<spring:message code="message.listForm.suoXueZhuanYe"/><spring:message code="message.info.zuiDaChangDu"/>42<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}
    		
    		var companyId = $.trim($("#companyId").val());
    		if (companyId == null || companyId == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.gongZuoDanWei"/>！",  "warn");
                return false;
            }else if(companyId.length > 85){
				$.alert("<spring:message code="message.listForm.gongZuoDanWei"/><spring:message code="message.info.zuiDaChangDu"/>85<spring:message code="message.info.geZiFu"/>！",  "warn");
				return false;
			}

    		
    		
    		/* var expSkills = $.trim($("#expSkillsType1").val());
            if (expSkills == null || expSkills == "") {
                $.alert("<spring:message code="message.yanZheng.qingShuRu"/><spring:message code="message.listForm.zhuanYeJiShuTeChang"/>！",  "warn");
                return false;
            }else if(expSkills.length > 85){
                $.alert("<spring:message code="message.listForm.zhuanYeJiShuTeChang"/><spring:message code="message.info.zuiDaChangDu"/>85<spring:message code="message.info.geZiFu"/>！",  "warn");
                return false;
            } */
    		return true;
    	}
        
    	$(function() {
    		
          
            
            
    		
    		if($("#opType").val()=="0"){
                $("#expSkillsType1").HNSelect({
                    url: "${ctx}/selectController/getExpertType.html?status=1", data: { ID: '0'},  defaultText: "<option value=''>请选择</option>",
                    func: function () {
                        $("#expSkillsType2").HNSelect({
                            parent_selector: "#expSkillsType1", url: "${ctx}/selectController/getExpertType.html?status=1",dataid: "ID",defaultText: "<option value=''>请选择</option>",
                                      func: function () {
                                          $("#expSkillsType3").HNSelect({
                                              parent_selector: "#expSkillsType2", url: "${ctx}/selectController/getExpertType.html?status=1", dataid: "ID", defaultText: "<option value=''>请选择</option>"
                                          });
                                      }
                        });
                    }
                });
                
    			$("#area1").HNSelect({
    	            url: "${pageContext.request.contextPath}/selectController/getArea.html", data: { ID: '000000' },  defaultText: "<option value=''><spring:message code="message.select.option"/></option>",
    	            func: function () {
    	                $("#area2").HNSelect({
    	                    parent_selector: "#area1", url: "${pageContext.request.contextPath}/selectController/getArea.html", dataid: "ID",defaultText: "<option value=''><spring:message code="message.select.option"/></option>",
    	                    		  func: function () {
    	                                  $("#area3").HNSelect({
    	                                      parent_selector: "#area2", url: "${pageContext.request.contextPath}/selectController/getArea.html", dataid: "ID", defaultText: "<option value=''><spring:message code="message.select.option"/></option>"
    	                                  });
    	                              }
    	                });
    	            }
    	        });
    		}else{
    			
    			  
                 $("#expSkillsType1").HNSelect({
                     url: "${ctx}/selectController/getExpertType.html?status=1", data: { ID: '0'}, defaultselect:"${expSkillsId1}", defaultText: "<option value=''>请选择</option>",
                     func: function () {
                         $("#expSkillsType2").HNSelect({
                             parent_selector: "#expSkillsType1", url: "${ctx}/selectController/getExpertType.html?status=1",dataid: "ID",defaultselect:"${expSkillsId2}",defaultText: "<option value=''>请选择</option>",
                                       func: function () {
                                           $("#expSkillsType3").HNSelect({
                                               parent_selector: "#expSkillsType2", url: "${ctx}/selectController/getExpertType.html?status=1", dataid: "ID",defaultselect:"${expSkillsId3}", defaultText: "<option value=''>请选择</option>"
                                           });
                                       }
                         });
                     }
                 });  
    			  
    			  
    			$("#area1").HNSelect({
    	            url: "${pageContext.request.contextPath}/selectController/getArea.html", data: { ID: '000000' },defaultselect:"${areaId1}",  defaultText: "<option value=''><spring:message code="message.select.option"/></option>",
    	            func: function () {
    	                $("#area2").HNSelect({
    	                    parent_selector: "#area1", url: "${pageContext.request.contextPath}/selectController/getArea.html", dataid: "ID",defaultselect:"${areaId2}",defaultText: "<option value=''><spring:message code="message.select.option"/></option>",
    	                    		  func: function () {
    	                                  $("#area3").HNSelect({
    	                                      parent_selector: "#area2", url: "${pageContext.request.contextPath}/selectController/getArea.html", dataid: "ID",defaultselect:"${areaId3}", defaultText: "<option value=''><spring:message code="message.select.option"/></option>",
    	                                      func:function(){
    	                                    	 	if($("#area1").children("option:selected").text()==""){
    	                                  			    $("#area1").val("");
	    	                                  		} 
	    	                                  		if($("#area2").children("option:selected").text()==""){
	    	                                  			$("#area2").val("");
	    	                                  		}
	    	                                  		if($("#area3").children("option:selected").text()==""){
	    	                                  			$("#area3").val("");
	    	                                  		} 
    	                                      }
    	                                  });
    	                              }
    	                });
    	            }
    	        });
    		}
    	});
    </script>
    
</body>
</html>
